import { createWebHistory, createRouter } from 'vue-router'

const routes = [
  { path: '/', redirect: { name: 'contracts' } },
  {
    path: '/contracts',
    name: 'contracts',
    component: () => import('./views/contract/Contracts.vue'),
  },
  {
    path: '/factions',
    name: 'factions',
    component: () => import('./views/faction/Factions.vue'),
  },
  {
    path: '/systems',
    name: 'systems',
    component: () => import('./views/system/Systems.vue'),
  },
]

var router = createRouter({
  history: createWebHistory(),
  routes: routes,
})

export default router
